package com.zkthink.ceres.store.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zkthink.ceres.store.dto.CommentDto;
import com.zkthink.ceres.store.entity.StoreProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

@ApiModel("店铺展示")
@Data
public class StoreShowVO {
    /**
     * 地铺id
     */
    private Long id;
    @ApiModelProperty(value = "店铺名称")
    private String storeName;
    @ApiModelProperty("店面照")
    private  String storefrontImg;
    @ApiModelProperty(value = "店铺服务类型")
    private Integer StoreType;
    @ApiModelProperty(value = "地址")
    private String address;
    @ApiModelProperty(value = "订单量")
    private Integer orderQuantity;
    @ApiModelProperty(value = "评分")
    private Integer score;
    @ApiModelProperty(value = "距离  千米")
    private Double dis;
    @ApiModelProperty("评论")
    private List<CommentDto> commentlist;
    @ApiModelProperty("服务内容")
    private StoreProject storeProject;
    @ApiModelProperty("被访问的次数")
    private Integer frequency;
    @ApiModelProperty("简介")
    private String remark;
    @ApiModelProperty("营业时间")
    private String businessHours;
    @ApiModelProperty("电话")
    private String telephone;
    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    private String latitude;
    /**
     * 省
     */
    private String province;
    @ApiModelProperty(value = "到期时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private LocalDateTime expirationime;
}

